:: file        {{ var_filename }}.bat
:: brief       XXXX
:: note        XXXX
:: author      {{ var_author }}({{ var_email }})
:: date        {{ var_date }}
:: version     1.0

@echo off
setlocal EnableDelayedExpansion
:: ============================= 获取环境参数 ================================

set ARGV_LEN=%#
::echo "There are %ARGV_LEN% arguments passed to the {{ var_filename }}.bat"

set i=1
:show_argument
if %i% gtr %ARGV_LEN% goto end_show_argument

set arg=!%i%!
::echo "Argument %i%: %arg%"

set /a i+=1
goto show_argument

:end_show_argument
::echo "All arguments printed"

:: 脚本所在路径
set SCRIPT_DIR=%~dp0
echo "SCRIPT_DIR=%SCRIPT_DIR%"
:: 当前工作路径
set CURRENT_DIR=%cd%
echo "CURRENT_DIR=%CURRENT_DIR%"    

:: ============================= 实际调用逻辑 ================================
echo "============= BIGEN: {{ var_filename }}.bat ============="






echo "============= END: {{ var_filename }}.bat ============="
echo "{{ var_filename }}.bat return errorlevel:%errorlevel%"

pause
endlocal

